/**
 * 
 */
package com.neal.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Neal
 * @version 1.0
 * @description
 */
@Controller
public class LoginController {

	// Login form
    @RequestMapping("/login.html")
    public String login() {
        return "login";
    }
 
    // Login form with error
    @RequestMapping("/login-error.html")
    public String loginError(Model model) {
        model.addAttribute("loginError", true);
        return "login";
    }
    
    @RequestMapping("sessionTimeout.html")
    public String loginTimeout(Model model){
    	return "sessionTimeout";
    }
}
